package com.gegewa.topic.file.service;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

public interface FileService {

    /**
     * 上传文件。支持多文件上传
     * @return 文件保存路径
     */
    List<String> uploadFile(HttpServletRequest request, String directoryPath) throws IOException;

    void createDirectoryIfNotExists(String directoryPath);
}
